package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class AdvertBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String display_order ;
	private FileMetas file_meta ;
	private String title ;
	private String url ;
	private String key ;
	public String getDisplay_order() {
		return display_order;
	}
	public void setDisplay_order(String display_order) {
		this.display_order = display_order;
	}
	public FileMetas getFilemeta() {
		return file_meta;
	}
	public void setFilemeta(FileMetas filemeta) {
		this.file_meta = filemeta;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, AdvertBean.class);
		}
		return null;
	}

}
